package hu.diploma.web.client.service;

import hu.diploma.web.shared.webvos.GroupWebVo;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("group")
public interface WebGroupService extends RemoteService {

	public List<GroupWebVo> loadByDevice(Long deviceId) throws Exception;

	public void addPersonToGroup(Long personId, Long groupId) throws Exception;

	public void movePersonToGroup(Long personId, Long groupFromId, Long groupToId) throws Exception;

	public void addPersonToGroup(List<Long> personIds, Long groupId) throws Exception;

	public void movePersonToGroup(List<Long> personIds, Long groupFromId, Long groupToId) throws Exception;

	public void removePersonFromGroup(Long personId, Long groupId) throws Exception;

}
